<?php

use Session\SessionInterface;
use Swoft\Bean\BeanFactory;
use Session\SessionManager;


function session(): SessionInterface
{
    /** @var \Session\SessionManager $sessionManager */
    $sessionManager = BeanFactory::getBean(SessionManager::class);
    return $sessionManager->getSession();
}